
#ifndef __TYPES__
#define __TYPES__

#include "stdint.h"

/** macro */
#undef true
#define true    1
#undef TRUE
#define TRUE    true

#undef false
#define false   0
#undef FALSE
#define FALSE   false

#undef null
#define null    0
#undef NULL
#define NULL    null

/* types declaration */
typedef int8_t      INT8S;
typedef uint8_t     INT8U;
typedef int16_t     INT16S;
typedef uint16_t    INT16U;
typedef int32_t     INT32S;
typedef uint32_t    INT32U;
typedef int64_t     INT64S;
typedef uint64_t    INT64U;

#undef bool
typedef INT8U        bool;

typedef INT8S       RET;
#define st(x)      do { x } while (__LINE__ == -1)
typedef void (*FUNC)(void);
#endif /* __TYPES__ */

